<template>
  <img alt="java" src="/img/java.png" :[woh]="figure" :class="box" :title="slogan" @click="changeAttr">
  <img alt="computerroom" :src="pic"  :[woh]="figure" :class="box" :title="slogan" @click="changeAttr" v-show="condition">
  <img alt="Vue logo" src="/img/python.png" :[woh]="figure" :class="box" :title="slogan"  @click="changeAttr">
</template>

<script>

export default {
  name: 'App',
  data() {
    return {
      pic:'/img/computerroom.png',
      woh:'width',
      figure:300,
      box:'box',
      slogan: '桃李不言下自成蹊',
      condition:false
    }
  },
  methods: {
    changeAttr() {
      this.woh = this.woh == 'width' ? 'height' : 'width'
    }
  }
}
</script>

<style>
.box{
  border-radius: 50%;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
